package com.todo.biz.application.service;

import com.todo.biz.application.entity.bo.CommentBO;
import com.todo.biz.application.entity.condition.CommentConditionBO;
import com.todo.common.common.entity.response.page.PageResult;

/**
 * (Comment)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 00:19:45
 */
public interface CommentService {

    /**
     * 新增评论信息
     *
     * @param commentBO
     * @return
     */
    Boolean insertComment(CommentBO commentBO);

    /**
     * 根据主键删除评论信息
     *
     * @param id
     * @return
     */
    Boolean removeCommentById(Long id);

    /**
     * 根据主键查询评论信息
     *
     * @param id
     * @return
     */
    CommentBO queryCommentById(Long id);

    /**
     * 多条件查询评论信息
     *
     * @param conditionBO
     * @return
     */
    PageResult<CommentBO> queryCommentByCondition(CommentConditionBO conditionBO);

}
